import { run } from './cli';

const args = process.argv.slice(2);

const cwd = args.length === 0 ? undefined : args[0];
run(cwd)
    .then(() => {
        console.log('Linting completed');
        process.exit(0);
    })
    .catch((err) => {
        console.error(err);
        process.exit(1);
    });
